type
  Person = object
    name: string
    age: int

  PersonRef = ref object
    name: string
    age: int

var p:Person = Person(name:"person", age:10)
echo p

var pref:PersonRef
echo pref == nil
new(pref)
echo pref.name
